package edu.pku.sei.transformation.tgg.action;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jface.action.Action;

import edu.pku.sei.transformation.codegen.ICodegenActionFactory;
import edu.pku.sei.transformation.editor.model.Transformation;
import edu.pku.sei.transformation.editor.model.execution.TransformationExecution;

public class TGGCodegenFactory implements ICodegenActionFactory {

	@Override
	public List<Action> getCodegenActions(Transformation trans) {
		ArrayList<Action> result = new ArrayList<Action>();
		GenTGGAction action = new GenTGGAction(trans);
		result.add(action);
		return result;
	}

	@Override
	public List<Action> getCodegenActions(TransformationExecution transExe) {
		Transformation trans = transExe.getTransformation();
		ArrayList<Action> result = new ArrayList<Action>();
		GenTGGAction action = new GenTGGAction(trans);
		result.add(action);
		return result;
	}

}
